package ord2.crawler;

import ord2.core.AbstractFactory;

/**
 * This class is used to retrieve instances of crawlers that were attached
 * to the system. Names are case-sensitive.
 *
 * @author José Ivan
 * @author Edviges
 * 
 */
public final class CrawlerFactory extends AbstractFactory<String, Crawler> {
    
    private static CrawlerFactory instance;
    
    private CrawlerFactory() {
    
        super();
    }
    
    /**
     * Gets a instance of this converter to be used.
     * @return A instance of this factory
     */
    public static CrawlerFactory getInstance() {
        
        if (instance == null) {
            
            instance =  new CrawlerFactory();
        }
        
        return instance;
    }
}
